/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __CF_H
#define __CF_H

typedef struct _cf_t_
{
    float k;    //权重k
    float n;    //上一次的值n
} cf_t;

#define MY_PI   (3.141592654f)

void cf_init(cf_t *hcf, float k);
void cf_init_for_fr(cf_t *hcf, float wc, float dt);
float cf_apply(cf_t *hcf, float in);

#endif /* __CF_H */

/******************* (H) COPYRIGHT 2024 FUYEBING*****END OF FILE************/